package com.aidex.biz.mapper;

import com.aidex.biz.domain.PushRule;
import com.aidex.common.core.mapper.BaseMapper;

import java.util.List;

/**
 * 分配规则Mapper接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-03-11
 */
public interface PushRuleMapper extends BaseMapper<PushRule> {

    /**
     * 批量删除分配规则
     *
     * @param ids 需要删除的分配规则ID集合
     * @return
     */
    public int deletePushRuleByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param pushRule 分配规则
     * @return 结果
     */
    public Integer findMaxSort(PushRule pushRule);

    public PushRule findExist(PushRule pushRule);

    /**
     * 查询排除临时表的分配规则
     *
     * @param pushRule
     * @return
     */
    public List<PushRule> findRulesByLaiyuanCity(PushRule pushRule);

    public List<PushRule> findRuleListByUser(PushRule pushRule);
}
